<!DOCTYPE html>
<html lang="zh">
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{$tdk['title']}</title>
  <meta name="description" content="{$tdk['description']}">
  <meta name="keywords" content="{$tdk['keywords']}">
  <meta name="author" content="alonez" />
  <link rel="shortcut icon" href="https://ujia-img.oss-cn-shenzhen.aliyuncs.com/beauthome/favicon.ico">
  <link rel="stylesheet" href="https://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.css">
  <script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
  <script src="https://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
  <script>!function(g,d,t,e,v,n,s){if(g.gdt)return;v=g.gdt=function(){v.tk?v.tk.apply(v,arguments):v.queue.push(arguments)};v.sv='1.0';v.bt=0;v.queue=[];n=d.createElement(t);n.async=!0; n.src=e;s=d.getElementsByTagName(t)[0];s.parentNode.insertBefore(n,s);}(window,document,'script', '//qzonestyle.gtimg.cn/qzone/biz/gdt/dmp/user-action/gdtevent.min.js');gdt('init','1200161741');gdt('track','PAGE_VIEW');</script><noscript>< img height="1" width="1" style="display:none" src="https://a.gdt.qq.com/pixel?user_action_set_id=1200161741&action_type=PAGE_VIEW&noscript=1"/></noscript>
</head>
<body>

<div data-role="page" id="pageone">
  <img class="img" alt="" style="width: 100%; height: 100%; object-fit: cover" src="https://res.bestyoujia.com/web/ZMYJ/assets/img/wx_subscribe.png">
</div>
</body>
<script>
  $(document).on("pagecreate","#pageone",function(){
    $("img").on("taphold",function(){
      if (getCookie("gdt")) {
        console.log("已回传");
        return;
      }
      console.log("回传");
      gdt('track', 'RESERVATION', {'key1': 'value1', 'key2': 'value2'});// 预约
      setCookie("gdt", "1");
    });
  });

  function setCookie(c_name, value) {
    var exdate = new Date();
    exdate.setHours(23, 59, 59, 999);
    document.cookie = c_name + "=" + escape(value) + ";expires=" + exdate.toGMTString();

  }

  function getCookie(c_name) {
    if (document.cookie.length > 0) {
      c_start = document.cookie.indexOf(c_name + "=")
      if (c_start != -1) {
        c_start = c_start + c_name.length + 1
        c_end = document.cookie.indexOf(";", c_start)
        if (c_end == -1) c_end = document.cookie.length
        return unescape(document.cookie.substring(c_start, c_end))
      }
    }
    return ""
  }
</script>
</html>
